{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">
			<a href="{:url('add')}" class="btn btn-primary pull-right"> <i class="fa fa-plus-circle fa-lg"></i> 新增</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th width="60">ID</th>
            <th>名称</th>
            <th>优惠金额</th>
            <th>排序</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td>{$item['id']}</td>
            <td>{$item['name']}</td>
            <td>{$item['reduce_prcie']}</td>
            <td>{$item['sort']}</td>
            <td>{eq name="item['status']" value='1'}正常{else /}禁用{/eq}</td>
            <td>
              <a href="{:url('lists',array('id'=>$item['id']))}">查看优惠码列表</a>
              <a href="{:url('edit',array('id'=>$item['id']))}">编辑</a>
              <a href="{:url('del',array('id'=>$item['id']))}" class="confirm ajax-get">删除</a>
            </td>
          </tr>
          {/volist}
        </tbody>
      </table>
		</div>
	</div>
</div>
{/block}
